package object_oriented

// 顶层类
class Top(name: String, subname: String) {
  // 嵌套类
  case class Nested(name: String)
  def show(): Unit = {
    val c = new Nested((subname))
    printf("Top %s includes a Nested %s\n", name, c.name)
  }

}
